//
//  RootView.m
//  UI3_UIImageView限时代码
//
//  Created by dllo on 15/11/10.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "RootView.h"

@implementation RootView

- (void)dealloc
{
    [_imageV release];
    [_label release];
    [super dealloc];
}



- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self createSubviews];
        
    }
    return self;
}

- (void)createSubviews
{
    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)];
    self.imageV.image = [UIImage imageNamed:@"bg.png"];
    [self addSubview:self.imageV];
    [_imageV release];
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(100, 150, 60, 30)];
    [self addSubview:self.label];
    [_label release];
    
    
    
    
    
}




@end
